package com.lzc.pojo.dto;

import com.lzc.pojo.entity.User;
import lombok.Data;

/**
 * 用户信息简约
 */
@Data
public class UserDto {

    private Long id;
    private String nickName;
    private String username;
    private String image;
    private Character sex;

    public UserDto(){}

    public UserDto(User user){
        this.id = user.getId();
        this.nickName = user.getNickname();
        this.username = user.getUsername();
        this.sex = user.getSex();
        this.image = user.getImage();
    }
}

